package cn.com.dycc.sys_manage.usersysmanagement.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class NewUser implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2990298560782490454L;
	
	private String id;                 //用户ID
	private String account;				//用户帐号
	private String wx_id;				//微信id
	private String wx_nickname;			//微信昵称
	private Date binding_date;			//微信绑定时间
	private String password;			//登录密码
	private String hand_pwd;			//手势密码
	private String username;			//用户姓名
	private String nickname;			//用户昵称
	private String certificate;			//身份证
	private String card_no;				//工作卡编号
	private String addr;				//通信地址
	private String face;				//头像
	private Integer order_no;			//排列顺序
	private String political_status;	//政治面貌
	private String name_py;				//用户名称拼音全称
	private String name_py_short;		//用户名称每个字的首字母
	private String name_py_first;		//用户名称的首字母
	private Timestamp create_date;		//操作日期
	private String create_user;			//操作人
	private String state;				//可用标识
	private String org_id;				//组织标识
	private String update_date;			//创建时间
	private String update_user_id; 		//创建人
	
	private String mobile_tel;			/*20180725cxj新增字段*/
	private String home_tel;			 /*20180725cxj新增字段*/
	
	public NewUser(){}

	public NewUser(String id, String account, String wx_id, String wx_nickname, Date binding_date, String password,
			String hand_pwd, String username, String nickname, String certificate, String card_no, String addr,
			String face, Integer order_no, String political_status, String name_py, String name_py_short,
			String name_py_first, Timestamp create_date, String create_user, String state, String org_id,
			String update_date, String update_user_id, String mobile_tel, String home_tel) {
		super();
		this.id = id;
		this.account = account;
		this.wx_id = wx_id;
		this.wx_nickname = wx_nickname;
		this.binding_date = binding_date;
		this.password = password;
		this.hand_pwd = hand_pwd;
		this.username = username;
		this.nickname = nickname;
		this.certificate = certificate;
		this.card_no = card_no;
		this.addr = addr;
		this.face = face;
		this.order_no = order_no;
		this.political_status = political_status;
		this.name_py = name_py;
		this.name_py_short = name_py_short;
		this.name_py_first = name_py_first;
		this.create_date = create_date;
		this.create_user = create_user;
		this.state = state;
		this.org_id = org_id;
		this.update_date = update_date;
		this.update_user_id = update_user_id;
		this.mobile_tel = mobile_tel;
		this.home_tel = home_tel;
	}
	
	

	public String getMobile_tel() {
		return mobile_tel;
	}

	public void setMobile_tel(String mobile_tel) {
		this.mobile_tel = mobile_tel;
	}

	public String getHome_tel() {
		return home_tel;
	}

	public void setHome_tel(String home_tel) {
		this.home_tel = home_tel;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getWx_id() {
		return wx_id;
	}

	public void setWx_id(String wx_id) {
		this.wx_id = wx_id;
	}

	public String getWx_nickname() {
		return wx_nickname;
	}

	public void setWx_nickname(String wx_nickname) {
		this.wx_nickname = wx_nickname;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	public Date getBinding_date() {
		return binding_date;
	}

	public void setBinding_date(Date binding_date) {
		this.binding_date = binding_date;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getHand_pwd() {
		return hand_pwd;
	}

	public void setHand_pwd(String hand_pwd) {
		this.hand_pwd = hand_pwd;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getCertificate() {
		return certificate;
	}

	public void setCertificate(String certificate) {
		this.certificate = certificate;
	}

	public String getCard_no() {
		return card_no;
	}

	public void setCard_no(String card_no) {
		this.card_no = card_no;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getFace() {
		return face;
	}

	public void setFace(String face) {
		this.face = face;
	}

	public Integer getOrder_no() {
		return order_no;
	}

	public void setOrder_no(Integer order_no) {
		this.order_no = order_no;
	}

	public String getPolitical_status() {
		return political_status;
	}

	public void setPolitical_status(String political_status) {
		this.political_status = political_status;
	}

	public String getName_py() {
		return name_py;
	}

	public void setName_py(String name_py) {
		this.name_py = name_py;
	}

	public String getName_py_short() {
		return name_py_short;
	}

	public void setName_py_short(String name_py_short) {
		this.name_py_short = name_py_short;
	}

	public String getName_py_first() {
		return name_py_first;
	}

	public void setName_py_first(String name_py_first) {
		this.name_py_first = name_py_first;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	public Timestamp getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Timestamp create_date) {
		this.create_date = create_date;
	}

	public String getCreate_user() {
		return create_user;
	}

	public void setCreate_user(String create_user) {
		this.create_user = create_user;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getOrg_id() {
		return org_id;
	}

	public void setOrg_id(String org_id) {
		this.org_id = org_id;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	public String getUpdate_date() {
		return update_date;
	}

	public void setUpdate_date(String update_date) {
		this.update_date = update_date;
	}

	public String getUpdate_user_id() {
		return update_user_id;
	}

	public void setUpdate_user_id(String update_user_id) {
		this.update_user_id = update_user_id;
	}

	@Override
	public String toString() {
		return "NewUser [id=" + id + ", account=" + account + ", wx_id=" + wx_id + ", wx_nickname=" + wx_nickname
				+ ", binding_date=" + binding_date + ", password=" + password + ", hand_pwd=" + hand_pwd + ", username="
				+ username + ", nickname=" + nickname + ", certificate=" + certificate + ", card_no=" + card_no
				+ ", addr=" + addr + ", face=" + face + ", order_no=" + order_no + ", political_status="
				+ political_status + ", name_py=" + name_py + ", name_py_short=" + name_py_short + ", name_py_first="
				+ name_py_first + ", create_date=" + create_date + ", create_user=" + create_user + ", state=" + state
				+ ", org_id=" + org_id + ", update_date=" + update_date + ", update_user_id=" + update_user_id
				+ ", mobile_tel=" + mobile_tel + ", home_tel=" + home_tel + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		NewUser other = (NewUser) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	

}
